package com.crl.game.simulation.common.factory
{
	import com.crl.game.simulation.server.Actor;
	import com.crl.game.simulation.common.SimulationObject;
	
	/**
	 *  仿真对像工厂;
	 * @author crl
	 * 
	 */	
	public class SobFactory
	{
		/**
		 * 标识; 
		 */		
		private static var nextSobID:int=0;
		public function SobFactory()
		{
		}
		
		/**
		 * 创建仿真对像; 
		 * @param type
		 * @return 
		 * 
		 */		
		public function create(type:int):SimulationObject{
			var result:SimulationObject;
			switch(type){
				default :
					result = new Actor(nextSobID++);
					break;
			}
			return result;
		}
	}
}